package main

import (
	"go.uber.org/dig"
	"os"
	"owl"
	"owl/web_server"
	_ "resume/app/middleware"
	"resume/bootstrap"
	_ "resume/public"
	_ "resume/router"
)

func main() {
	if len(os.Args) == 1 {
		Start()
	}
	owl.NewApp("", "resume", "简历", owl.KillMain, Start).Run()
}

func Start() {

	type iv struct {
		dig.In
		HttpServer *web_server.HttpService
	}

	err := bootstrap.Stage.Invoke(func(i iv) {
		select {}
	})

	if err != nil {
		panic(err)
	}

}
